import { useState } from 'react'
import { Row, Col } from 'antd'
import List from './List'
import Substance from './Substance'
import './index.scss'
const EnterpriseData = () => {
  const [tap, setTap] = useState('1')
  const [valueId, setValueId] = useState()
  const handleClick = (value) => {
    setValueId(value)
  }
  return (
    <div style={{ height: '100%' }}>
      <div className="EnterpriseData">
        <Row gutter={[16, 16]}>
          <Col span={19}>
            <Substance entId={valueId} />
          </Col>
          <Col span={5}>
            <div className="EnterpriseData_list">
              <List click={handleClick} tap={tap} setTap={setTap} />
            </div>
          </Col>
        </Row>
      </div>
    </div>
  )
}
export default EnterpriseData
